package com.laowang.project.system.service.impl;

import java.util.List;
                                                                                                                import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyCyhShopCattleMapper;
import com.laowang.project.system.domain.MyCyhShopCattle;
import com.laowang.project.system.service.MyCyhShopCattleService;

/**
 * 店铺Service业务层处理
 *
 * @author laowang
 * @date 2024-04-11
 */
@Service
public class MyCyhShopCattleServiceImpl implements MyCyhShopCattleService {
    @Autowired
    private MyCyhShopCattleMapper myCyhShopCattleMapper;

    /**
     * 查询店铺
     *
     * @param id 店铺ID
     * @return 店铺
     */
    @Override
    public MyCyhShopCattle selectMyCyhShopCattleById(Integer id) {
        return myCyhShopCattleMapper.selectMyCyhShopCattleById(id);
    }

    /**
     * 查询店铺列表
     *
     * @param myCyhShopCattle 店铺
     * @return 店铺
     */
    @Override
    public List<MyCyhShopCattle> selectMyCyhShopCattleList(MyCyhShopCattle myCyhShopCattle) {
        return myCyhShopCattleMapper.selectMyCyhShopCattleList(myCyhShopCattle);
    }

    /**
     * 新增店铺
     *
     * @param myCyhShopCattle 店铺
     * @return 结果
     */
    @Override
    public int insertMyCyhShopCattle(MyCyhShopCattle myCyhShopCattle) {
                                                                                                                                                                                                    return myCyhShopCattleMapper.insertMyCyhShopCattle(myCyhShopCattle);
    }

    /**
     * 修改店铺
     *
     * @param myCyhShopCattle 店铺
     * @return 结果
     */
    @Override
    public int updateMyCyhShopCattle(MyCyhShopCattle myCyhShopCattle) {
                                                                                                                                                                                                    return myCyhShopCattleMapper.updateMyCyhShopCattle(myCyhShopCattle);
    }

    /**
     * 批量删除店铺
     *
     * @param ids 需要删除的店铺ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhShopCattleByIds(Integer[] ids) {
        return myCyhShopCattleMapper.deleteMyCyhShopCattleByIds(ids);
    }

    /**
     * 删除店铺信息
     *
     * @param id 店铺ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhShopCattleById(Integer id) {
        return myCyhShopCattleMapper.deleteMyCyhShopCattleById(id);
    }

    @Override
    public List<MyCyhShopCattle> selectByIds(List<Integer> collect) {
        return myCyhShopCattleMapper.selectByIds(collect);
    }
}
